<center><img src="operacao.png"/></center><br /><br />
<fieldset>
    <form action="cadastro_op_banc.php" method="POST">
        <label for="nome"><b>Operação</b></label><br />  <br />
        <input type="text" name="operacao" id="operacao" size="40" style="text-transform:uppercase;" /><br /><br />
        <input type="submit" value="Cadastrar"/>
        <input type="button" value="Limpar" onclick="javascript:window.history.go(0)"/>
        <input type="hidden" name="id" id="id" value="0">
    </form>
    <fieldset style="float: right; width: 20%; margin-top: -8%; margin-right: 0%">
        <legend><h3>Operações Cadastradas</h3></legend>
        <div name="div_cadastros" id="div_cadastros" style="overflow: scroll; overflow-x: hidden">
            
            <?php
            $query = "SELECT operacao, id FROM operacao WHERE bloqueado = 0";
            $result = mysql_query($query);
            echo "<table>";
            while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
                echo '<tr>
                    <td>' . $row["operacao"] . '</td>
                    <td><img src="./imagens/usuario_edit.png" onclick="document.getElementById(\'id\').value =' . $row["id"] . ';Execedicao(\'operacao\',\'' . $row["id"] . '\')"/></td>
                    <td><img src="./imagens/usuario_del.png" onclick="delecao(\'operacao\',\'' . $row["id"] . '\')"/></td>
            </tr>';
            }
            echo "</table>";
            ?>
        </div>
    </fieldset>
</fieldset>
